using MCTS;
using UnityEngine;

namespace Gobang
{
    [System.Serializable]
    public class PredictionPointData
    {
        public int sortingValue;
        public float winTimes;
        public int mockTimes;
        public int x;
        public int y;
        public Vector2Int Position => new Vector2Int(x, y);

        public PredictionPointData(MonteCarloTreeNode node, int sortingValue = 0) : this(node.winTimes, node.mockTimes, node.enterAction,sortingValue) { }

        public PredictionPointData(float winTimes, int mockTimes, Vector2Int position,int sortingValue = 0)
        {
            this.winTimes = winTimes;
            this.mockTimes = mockTimes;
            x = position.x;
            y = position.y;
            this.sortingValue = sortingValue;
        }
    }
}